﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KINLO.Model
{
    public class Machine: ViewModelBase
    {
        Guid id;
        public Guid ID
        {
            get { return id; }
            set
            {
                id = value;
                RaisePropertyChanged("ID");
            }
        }
        //18线用string
        string name;
        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }


        //26线用int
        //int name;
        //public int Name
        //{
        //    get { return name; }
        //    set
        //    {
        //        name = value;
        //        RaisePropertyChanged("Name");
        //    }
        //}

        int machineType;
        public int MachineType
        {
            get { return machineType; }
            set
            {
                machineType = value;
                RaisePropertyChanged("MachineType");
            }
        }

        string ip;
        public string IP
        {
            get { return ip; }
            set
            {
                ip = value;
                RaisePropertyChanged("IP");
            }
        }

        int port;
        public int Port
        {
            get { return port; }
            set
            {
                port = value;
                RaisePropertyChanged("Port");
            }
        }

        string remark;
        public string Remark
        {
            get { return remark; }
            set
            {
                remark = value;
                RaisePropertyChanged("Remark");
            }
        }
        string testResult;
        public string TestResult
        {
            get { return testResult; }
            set
            {
                testResult = value;
                RaisePropertyChanged("TestResult");
            }
        }

    }
}
